package com.dhcc.sdc.ws.SdsGetFeeService;

public class SdsGetFeeServiceSoapProxy implements SdsGetFeeServiceSoap {
  private String _endpoint = null;
  private SdsGetFeeServiceSoap sdsGetFeeServiceSoap = null;
  
  public SdsGetFeeServiceSoapProxy() {
    _initSdsGetFeeServiceSoapProxy();
  }
  
  public SdsGetFeeServiceSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initSdsGetFeeServiceSoapProxy();
  }
  
  private void _initSdsGetFeeServiceSoapProxy() {
    try {
      sdsGetFeeServiceSoap = (new SdsGetFeeServiceLocator()).getSdsGetFeeServiceSoap();
      if (sdsGetFeeServiceSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)sdsGetFeeServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)sdsGetFeeServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (sdsGetFeeServiceSoap != null)
      ((javax.xml.rpc.Stub)sdsGetFeeServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public SdsGetFeeServiceSoap getSdsGetFeeServiceSoap() {
    if (sdsGetFeeServiceSoap == null)
      _initSdsGetFeeServiceSoapProxy();
    return sdsGetFeeServiceSoap;
  }

  public String getAdmFee(String episodeId) throws java.rmi.RemoteException{
    if (sdsGetFeeServiceSoap == null)
      _initSdsGetFeeServiceSoapProxy();
    return sdsGetFeeServiceSoap.getAdmFee(episodeId);
  }
  
  
}